<?php defined('SYSPATH') or die('No direct script access.');

class Helper_Validation {
	
	public static function validate_registration($name, $password1, $password2) { 
		if(self::validate_password($password1, $password2) && self::validate_name($name)) { 
			return true;
		}
		return false;
	}

	private static function validate_password($password1, $password2) 
	{	
		$password1 = trim($password1);
		$password2 = trim($password2);
		if($password1 == $password2) { 
			return TRUE;
		}
		return FALSE;
	}
	
	private static function validate_name($name)
	{
		return TRUE;
	}
}
